﻿<html DIR="LTR" xmlns:MSHelp="http://msdn.microsoft.com/mshelp">
  <head>
    <META NAME="save" CONTENT="history" />
    <!--"A" Index keyword="M:Eas.WebCrawler.Common.Collections.ArrayHelper.Combine``1(``0[][])"-->
    <title>ArrayHelper.Combine&lt;_Type&gt; Method (Eas.WebCrawler.Common.Collections)</title>
    <xml>
      <MSHelp:RLTitle Title="ArrayHelper.Combine&lt;_Type&gt; Method (Eas.WebCrawler.Common.Collections)" />
      <MSHelp:Attr Name="Product" Value="Eas.WebCrawler Web Crawling System" />
      <MSHelp:Attr Name="TopicType" Value="kbSyntax" />
    </xml>
    <link rel="stylesheet" type="text/css" href="Modern.css">
    </link>
    <link rel="stylesheet" type="text/css" href="Classic.css">
    </link>
    <link rel="stylesheet" type="text/css" href="redwhiteblue.css">
    </link>
    <link rel="stylesheet" type="text/css" href="calm.css">
    </link>
    <link rel="stylesheet" type="text/css" href="lilac.css">
    </link>
    <link rel="stylesheet" type="text/css" href="HighContrastBlack.css">
    </link>
    <link rel="stylesheet" type="text/css" href="HighContrastWhite.css">
    </link>
    <link rel="stylesheet" id="HxLinks" type="text/css" href="ms-help://Hx/HxRuntime/HxLink.css">
    </link>
    <script src="script.js">
    </script>
  </head>
  <body style="display: none;">
    <input type="hidden" id="userDataCache" class="userDataStyle">
    </input>
    <input type="hidden" id="hiddenScrollOffset">
    </input>
    <div id="header">
      <table>
        <tr>
          <td align="left">
            <span id="headerTitle">Eas.WebCrawler Web Crawling System<br /></span>
            <span id="headerNamespace">
              <a href="N_Eas_WebCrawler_Common_Collections.htm">Eas.WebCrawler.Common.Collections</a>.</span>
            <span id="headerType">
              <a href="T_Eas_WebCrawler_Common_Collections_ArrayHelper.htm">ArrayHelper</a>.<br /></span>
            <span id="headerBold">Combine</span> <span id="headerMain">Method</span></td>
          <td align="right">
            Language:
							<select id="selectLanguage" style="width:225" onchange="ChangeLanguage()"><option value="vb">Visual Basic</option><option value="cs">C#</option><option value="c">C++</option><option value="js">JScript</option><option value="(all)">(Show All)</option></select><br />See Also:
							<select id="selectSeeAlso" style="width:225" onchange="ChangeSeeAlso()"><option value="">(Select...)</option><option value="T_Eas_WebCrawler_Common_Collections_ArrayHelper.htm">ArrayHelper Class</option><option value="T_Eas_WebCrawler_Common_Collections_ArrayHelper_Members.htm">ArrayHelper Members</option><option value="N_Eas_WebCrawler_Common_Collections.htm">Eas.WebCrawler.Common.Collections Namespace</option></select><br />Style:
							<select id="selectStyleSheet" style="width:225" onchange="ChangeStyleSheet()"><option>Contemporary</option><option>Traditional</option><option>Red, White, and Blue</option><option>Calm</option><option>Lilac</option><option>High Contrast Black</option><option>High Contrast White</option></select></td>
        </tr>
      </table>
    </div>
    <div id="mainSection">
      <div id="allHistory" class="saveHistory" onsave="saveAll()" onload="loadAll()">
      </div>
      <div id="summary" class="section">
        <h1>
          <textRelation id="Summary" />
        </h1>Combines multiple arrays into one array.</div>
		<div id="declarationSyntaxes" class="section">
			<h1>Declaration Syntax</h1>
			
				<div class="declarationSyntax">
					<pre class="code_vb"><code language="vb"><span class="keyword">Public</span> <span class="keyword">Shared</span> <span class="keyword">Function</span> Combine<span class="delimiter">(</span>Of _Type<span class="delimiter">)</span><span class="delimiter">(</span> _
	<span class="keyword">ByVal</span> <span class="keyword">ParamArray</span> sourceArrays<span class="delimiter">(</span><span class="delimiter">)</span><span class="delimiter">(</span><span class="delimiter">)</span> <span class="keyword">As</span> _Type _
<span class="delimiter">)</span> <span class="keyword">As</span> _Type<span class="delimiter">(</span><span class="delimiter">)</span></code></pre>
				</div>
			
				<div class="declarationSyntax">
					<pre class="code_cs"><code language="cs"><span class="keyword">public</span> <span class="keyword">static</span> _Type<span class="operator">[</span><span class="operator">]</span> Combine<span class="operator">&lt;</span>_Type<span class="operator">&gt;</span><span class="delimiter">(</span>
	<span class="keyword">params</span> _Type<span class="operator">[</span><span class="operator">]</span><span class="operator">[</span><span class="operator">]</span> sourceArrays
<span class="delimiter">)</span><span class="delimiter">;</span></code></pre>
				</div>
			
				<div class="declarationSyntax">
					<pre class="code_c"><code language="c">In C<span class="operator">+</span><span class="operator">+</span><span class="delimiter">,</span> you cannot declare <span class="keyword">this</span> method<span class="operator">.</span></code></pre>
				</div>
			
				<div class="declarationSyntax">
					<pre class="code_js"><code language="js"><span class="keyword">public</span> <span class="keyword">static</span> function Combine<span class="delimiter">(</span>
	sourceArrays <span class="operator">:</span> _Type<span class="operator">[</span><span class="operator">]</span><span class="operator">[</span><span class="operator">]</span>
<span class="delimiter">)</span> <span class="operator">:</span> _Type<span class="operator">[</span><span class="operator">]</span><span class="delimiter">;</span></code></pre>
				</div>
			
		</div>
	<div id="parameters" class="section"><h1>Parameters</h1><dl><dt>sourceArrays</dt><dd>The source arrays you want to join. </dd></dl></div><div id="returnValue" class="section"><h1>Return Value</h1>A new array which joins the source arrays together.</div><div id="remarks" class="section"><h1>Remarks</h1>This function maintains the order of the arrays, so that the first source array will contain the lowest index elements in the retruned (combined) awway.
            In addition, this function maintains the order of elements in their own arrays.</div><div id="example" class="section"><h1>Example</h1>
      <div class="codeSnippet"><pre class="code_"><code>string[] a = {"a", "b", "b"};
            string[] b = {"c", "z", "g"};
            string[] c = {"d", "e","f"}
            string[] combined = ArrayHelper.Combine(a, b, c);
            foreach(string s in combined){
            Console.Write(s);
            }</code></pre></div>
            Will write out "abbczgdef" to the console.</div><div id="requirements" class="section"><h1>Requirements</h1><b>Namespace:</b> <a href="N_Eas_WebCrawler_Common_Collections.htm">Eas.WebCrawler.Common.Collections</a><br /><b>Assembly:</b> Eas.WebCrawler.Common (eas.webcrawler.common.dll)<br /></div><div id="seeAlso" class="section"><h1>See Also</h1><a href="T_Eas_WebCrawler_Common_Collections_ArrayHelper.htm">ArrayHelper Class</a> | <a href="T_Eas_WebCrawler_Common_Collections_ArrayHelper_Members.htm">ArrayHelper Members</a> | <a href="N_Eas_WebCrawler_Common_Collections.htm">Eas.WebCrawler.Common.Collections Namespace</a></div></div>
  </body>
</html>